<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="/Java823Web/lib/jquery/jquery-1.11.1.js" type="text/javascript" charset="utf-8"></script>

</head>
<body>
	<input type="button" value="get方式访问服务器" onclick="ajaxGet()"/><br/>
	<script type="text/javascript">
	function ajaxGet(){
		$.get (
				"/Java823Web/Ajaxwang",
				{"name":"zhangsan","age":20},
				function(date){
					alert("name:"+date.name+",age:"+date.age);
				},
				"json"//type:表示服务器返回的数据类型
				);
	}
</script>
</body>
</html>